<?php
/**
 * Created by PhpStorm.
 * User: lee
 * Date: 2018/11/16
 * Time: 3:26 PM
 */


ini_set('display_errors', 1);
error_reporting(-1);
require_once '/data/wwwroot/g_vendor/autoload.php';


use Biz\service\Event as sEvent;
use Biz\module\Decoupling\order\ShipOrder as deShipOrder;

sEvent::consume([sEvent::ORDER_SHIP_ALL_DELIVERY_SUCCESS, sEvent::ORDER_SHIP_PART_DELIVERY_SUCCESS], function ($message,$eventTag,$queueName) {
    new deShipOrder($message,$queueName);
},'php.biz.cli.shiporder');